package s05;

/**
 * @ClassName Woman
 * @Description TODO
 * @Author Li
 * @Date 2022/8/14 18:21
 * @ModifyDate 2022/8/14 18:21
 * @Version 1.0
 */
public class Woman extends Human {
    @Override
    public void seyHello() {
        System.out.println("Hello Woman!");
    }

    // 定义method方法，参数传递Greeter接口
    public void method(Greeter g) {
        g.greet();
    }

    public void show() {
        method(super::seyHello);
    }
}
